package com.nm.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nm.mapper.IncomeMapper;
import com.nm.pojo.Consumer;
import com.nm.pojo.Income;
import com.nm.service.ConsumerService;
import com.nm.mapper.ConsumerMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
* @author lenovo
* @description 针对表【consumer】的数据库操作Service实现
* @createDate 2022-05-10 15:57:16
*/
@Service
public class ConsumerServiceImpl extends ServiceImpl<ConsumerMapper, Consumer> implements ConsumerService{

    @Resource
    ConsumerMapper consumerMapper;
    @Resource
    IncomeMapper incomeMapper;
    @Override
    public int addConsumer(Consumer consumer) {
        return consumerMapper.addConsumer(consumer);
    }

    @Override
    public int addIncome(Income income) {
        return incomeMapper.addIncome(income);
    }
}




